package com.school.appleforgetbackend.controller;

import com.school.appleforgetbackend.BO.request.SwxxRequest;
import com.school.appleforgetbackend.BO.response.*;
import com.school.appleforgetbackend.service.UnderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;


/**
 * 试验场信息分页列表
 * **/
@Controller
@RequestMapping("/api/aqr/facility")
public class FacilityController {

    @Autowired
    private UnderService underService;

    /**
     * 首页 -- 左侧
     **/
    @RequestMapping(value = "/proving-ground/list")
    @ResponseBody
    public InformationResponse getGroundList(@RequestBody SwxxRequest swxxRequest) {
        InformationResponse informationResponse = underService.getGroundList(swxxRequest);
        System.out.println(informationResponse);
        return informationResponse;
    }
    //{
    //	"code": "3001",
    //	"msg": "token不存在",
    //	"data": "",
    //	"timestamp": "2025-09-22 14:21:11",
    //	"executionTime": ""
    //}

}

